package cn.tedu.cs.baking.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class UserDTO {
    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称")
    @NotNull(message = "用户名不能为空")
    private String userName;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "昵称")
    @NotNull(message = "昵称不能为空")
    private String nickName;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    private String password;
    
}
